package com.example.owner.bean.impl;

import com.example.owner.annotation.Cylinders;
import com.example.owner.bean.Engine;
import jakarta.inject.Singleton;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Singleton
public class TestEngine {
    private final Engine engine;

    public TestEngine(@Cylinders(12) Engine engine) {
        log.info("init test engine , {}", engine);
        this.engine = engine;
    }

    public String start() {
        return engine.start();
    }
}
